<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head th:replace="fragment_base::head(~{::title})">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>归档</title>
    <link rel="stylesheet"
          href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/common.css">
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
    <script src="../static/js/custom.js"></script>
    <script src="../static/js/semantic.min.js"></script>
    <script src="../static/js/import.js"></script>
</head>
<body>
<div class="mainContent">
    <!--导航-->
    <nav th:replace="fragment_base::menu(3)" class="ui inverted attached segment head-tab-padding">
        <div class="ui container">
            <!--stackable 表示可堆叠，自适应-->
            <div class="ui inverted secondary stackable menu">
                <h2 class="ui teal header item">博客</h2>
                <a class="menu-item item mobile-hide" href="#"><i class="teal code icon"></i>首页</a>
                <a class="menu-item item mobile-hide" href="#"><i class="teal idea icon"></i>分类</a>
                <a class="menu-item item mobile-hide" href="#"><i class="teal tags icon"></i>标签</a>
                <a class="menu-item item mobile-hide" href="#"><i
                        class="teal time icon"></i>归档</a>
                <a class="menu-item item mobile-hide" href="#"><i class="teal info icon"></i>关于我</a>
                <div class="menu-item right item mobile-hide">
                    <div class="ui icon transparent inverted input">
                        <input placeholder="搜索..." type="text">
                        <i class="teal search icon"></i>
                    </div>
                </div>
            </div>
        </div>
        <!--菜单按钮-->
        <a id="menu-toggle" class=" ui black icon button bar-position mobile-show" href="#">
            <i class="sidebar icon"></i>
        </a>
    </nav>

    <!--中间内容-->
    <div class="center-padding">
        <div class="ui container">
            <!--顶部-->
            <div class="ui  attached segment">
                <div class="ui middle aligned two column grid ">
                    <div class="column">
                        <h3 class="ui teal header">归档</h3>
                    </div>
                    <div class="right aligned column">
                        共<h3 th:text="${blogCount}" class="ui orange header inline-block">10</h3>个
                    </div>
                </div>
            </div>

            <th:block th:each="item:${historyMap}">
                <!--年份-->
                <div class="ui basic center aligned segment">
                    <h4 th:text="${item.key}" class="ui header">2020</h4>
                </div>

                <!--历史进程-->
                <div class="ui fluid vertical menu">
                    <a th:href="@{/blog/{id}(id=${blog.id})}"
                       th:each="blog:${item.value}" href="#"
                       class="item"
                       target="_blank">
                        <span>
                            <i class="mini teal circle icon"></i>
                                <span th:text="${blog.title}">Android进阶之路</span>
                            <div th:text="${#dates.format(blog.updateDateTime,'MMMdd')}"
                                 class="ui teal basic left pointing label font-thin padding-mini ">11月22</div>
                        </span>
                        <div th:text="${blog.flag?:'原创'}" class="ui basic orange centered left pointing label">原创
                        </div>
                    </a>

                    <!--/*-->
                    <a class="item" href="#" target="_blank">
               <span>
                   <i class="ui teal circle icon"></i>Android进阶之路
                     <div class="ui teal basic left pointing label font-thin padding-mini ">11月22</div>
               </span>
                        <div class="ui orange centered left pointing label">原创</div>
                    </a>

                    <a class="item" href="#" target="_blank">
               <span>
                   <i class="ui teal circle icon"></i>Android进阶之路
                     <div class="ui teal basic left pointing label font-thin padding-mini ">11月22</div>
               </span>
                        <div class="ui orange centered left pointing label">原创</div>
                    </a>
                    <!--*/-->
                </div>

            </th:block>
        </div>
    </div>
</div>

<!--底部内容-->
<footer th:replace="fragment_base :: footer"  class="ui inverted vertical segment foot-padding">
    <div class="ui center aligned container ">
        <!--grid  分割成 16份-->
        <div class="ui inverted divided stackable grid">
            <div class="three wide column">
                <div class="ui inverted link list">
                    <div class="item">
                        <img class="ui rounded image view-qr-width"
                             src="../static/img/me_wechat.png" alt=""
                             th:src="@{/img/me_wechat.png}"/>
                    </div>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="text-opacity-eight text-space">最新博客</h4>
                <div class="ui inverted link list ">
                    <a class="item" href="#">Android组件化开发...</a>
                    <a class="item" href="#">Activity生命周期详解...</a>
                    <a class="item" href="#">SpringBoot框架搭建...</a>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="text-opacity-eight text-space">联系我</h4>
                <div class="ui inverted link list">
                    <a class="item" href="#">邮箱：wu_tangren@163.com</a>
                    <a class="item" href="#">QQ：996489865</a>
                    <div class="ui inverted">
                        <a href="#"> <i class="teal github icon"></i></a>
                        <a href="#"> <i class="teal blogger  icon"></i></a>
                    </div>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="text-opacity-eight text-space">简介</h4>
                <p class="text-opacity-six text-space">欢迎大家来到我的博客空间,我是唐人从事Android开发工作.</p>
            </div>
        </div>
        <div class="ui inverted  divider"></div>
        <p class="text-opacity-six text-space">Copyright © 2020 - 2021 PersonalBlog Designed by
            TangRen</p>
    </div>
</footer>

</body>
</html>